---
# handlers file for nginx
- name: "check nginx configuration"
  command: "nginx -t -c /etc/nginx/nginx.conf"

- name: "service nginx reload"
  service:
    name: "nginx"
    state: reloaded